﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication
{
    public class ReceiveMsgClass
    {
        public ReceiveMsgClass(MsgManageClass mmc)
        {
            mmc.NewMsg += new EventHandler<MsgManageEventArgs>(mmc_NewMsg);
        }

        void mmc_NewMsg(object sender, MsgManageEventArgs e)
        {
            Console.WriteLine("Received msg!");
        }
    }
}
